package com.lemon.soft.bookingroom.service.impl;

import com.lemon.soft.bookingroom.util.PageUtils;
import com.lemon.soft.bookingroom.util.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.lemon.soft.bookingroom.dao.RefundRulesDao;
import com.lemon.soft.bookingroom.entity.RefundRulesEntity;
import com.lemon.soft.bookingroom.service.RefundRulesService;


@Service("refundRulesService")
public class RefundRulesServiceImpl extends ServiceImpl<RefundRulesDao, RefundRulesEntity> implements RefundRulesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RefundRulesEntity> page = this.page(
                new Query<RefundRulesEntity>().getPage(params),
                new QueryWrapper<RefundRulesEntity>()
        );

        return new PageUtils(page);
    }

}